﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreesenseSubAIS.Core;

namespace FreesenseSubAIS
{
    /// <summary>
    /// 光学方案接口
    /// </summary>
    interface IStrategy
    {
        /// <summary>
        /// 项任务开始前
        /// </summary>
        bool ItemTaskBefore(BasePicParameter param);

        /// <summary>
        /// 项任务结束
        /// </summary>
        /// <param name="param"></param>
        void ItemTaskFinished(BasePicParameter param);

        /// <summary>
        /// 任务开始
        /// </summary>
        /// <param name="id">产品ID</param>
        void ProcessStart(string id);
        /// <summary>
        /// 任务结束
        /// </summary>
        void ProcessFinished();
        /// <summary>
        /// 电测准备
        /// </summary>
        /// <returns></returns>
        bool ElectricReady();
    }
}
